a11y: Don't include gtk.h
authorBenjamin Otte <otte@redhat.com>
Thu, 8 Feb 2018 13:39:45 +0000 (14:39 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 8 Feb 2018 14:25:53 +0000 (15:25 +0100)
Also add missing includes and sort them for all the widgets that relied
on that before.

13 files changed:
gtk/a11y/gtkwidgetaccessible.h
gtk/gtkcolorswatch.c
gtk/gtkentry.c
gtk/gtkentryprivate.h
gtk/gtkimage.c
gtk/gtklabel.c
gtk/gtkprogressbar.c
gtk/gtkrange.c
gtk/gtkscale.c
gtk/gtkspinbutton.c
gtk/gtkswitch.c
gtk/gtkwidget.c
gtk/gtkwidgetprivate.h

index 37fd45bbdf91412334d2fda87e5ccf6d1de3d898..aa4aa8c38eda2da1f951cd90bf21386f17046387 100644 (file)
@@ -22,7 +22,7 @@
 #error "Only <gtk/gtk-a11y.h> can be included directly."
 #endif
 
-#include <gtk/gtk.h>
+#include <gtk/gtkaccessible.h>
 
 G_BEGIN_DECLS
 
index 9af9f8e4be1abbff88f1606c79ed2f5e8075cf11..16347a048d8bebbb4fad27098a336b72e80de0c9 100644 (file)
 
 #include "gtkcolorswatchprivate.h"
 
+#include "gtkbox.h"
 #include "gtkcolorchooserprivate.h"
+#include "gtkcssnodeprivate.h"
 #include "gtkdnd.h"
+#include "gtkdragdest.h"
+#include "gtkdragsource.h"
+#include "gtkgesturelongpress.h"
+#include "gtkgesturemultipress.h"
+#include "gtkgesturesingle.h"
 #include "gtkicontheme.h"
+#include "gtkimage.h"
+#include "gtkintl.h"
 #include "gtkmain.h"
-#include "gtkmenu.h"
-#include "gtkmenuitem.h"
-#include "gtkmenushell.h"
+#include "gtkmodelbutton.h"
+#include "gtkpopover.h"
 #include "gtkprivate.h"
-#include "gtkintl.h"
-#include "gtkcssnodeprivate.h"
 #include "gtkroundedboxprivate.h"
-#include "gtkwidgetprivate.h"
+#include "gtksnapshot.h"
 #include "gtkstylecontextprivate.h"
+#include "gtkwidgetprivate.h"
+
 #include "a11y/gtkcolorswatchaccessibleprivate.h"
 
 #include "gsk/gskroundedrectprivate.h"
index e4699417aa8a44a9fcee9ee2590aa888bfac60b4..f9431937617b3eabd9f4121fdcbc155c053cc5e7 100644 (file)
 
 #include "config.h"
 
-#include <string.h>
-
-#include <cairo-gobject.h>
+#include "gtkentryprivate.h"
 
+#include "gtkadjustment.h"
 #include "gtkbindings.h"
+#include "gtkbox.h"
+#include "gtkbutton.h"
 #include "gtkcelleditable.h"
+#include "gtkcelllayout.h"
+#include "gtkcssnodeprivate.h"
 #include "gtkdebug.h"
 #include "gtkdnd.h"
 #include "gtkdndprivate.h"
-#include "gtkentry.h"
+#include "gtkemojichooser.h"
 #include "gtkentrybuffer.h"
+#include "gtkgesturedrag.h"
+#include "gtkgesturemultipress.h"
+#include "gtkgesturesingle.h"
+#include "gtkimageprivate.h"
 #include "gtkimcontextsimple.h"
 #include "gtkimmulticontext.h"
 #include "gtkintl.h"
 #include "gtklabel.h"
+#include "gtkmagnifierprivate.h"
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkmenu.h"
 #include "gtkmenuitem.h"
 #include "gtkpango.h"
+#include "gtkpopover.h"
+#include "gtkprivate.h"
+#include "gtkprogressbar.h"
 #include "gtkseparatormenuitem.h"
 #include "gtkselection.h"
 #include "gtksettings.h"
+#include "gtksnapshot.h"
+#include "gtkstylecontextprivate.h"
+#include "gtktexthandleprivate.h"
 #include "gtktextutil.h"
-#include "gtkwindow.h"
-#include "gtktreeview.h"
+#include "gtktooltip.h"
 #include "gtktreeselection.h"
+#include "gtktreeview.h"
 #include "gtktypebuiltins.h"
-#include "gtkprivate.h"
-#include "gtkentryprivate.h"
-#include "gtkcelllayout.h"
-#include "gtktooltip.h"
-#include "gtkicontheme.h"
 #include "gtkwidgetprivate.h"
-#include "gtkstylecontextprivate.h"
-#include "gtktexthandleprivate.h"
-#include "gtkpopover.h"
-#include "gtktoolbar.h"
-#include "gtkmagnifierprivate.h"
-#include "gtkcssnodeprivate.h"
-#include "gtkimageprivate.h"
-#include "gtkemojichooser.h"
+#include "gtkwindow.h"
 
 #include "a11y/gtkentryaccessible.h"
 
+#include <cairo-gobject.h>
+#include <string.h>
+
 #include "fallback-c89.c"
 
 /**
index f4be18d0e69703f278d8d1d2ad063081f53bb4f4..0d1e8494e7ce0e6e515fde7906c923ad876e714f 100644 (file)
 #ifndef __GTK_ENTRY_PRIVATE_H__
 #define __GTK_ENTRY_PRIVATE_H__
 
-#include <gtk/gtktreeviewcolumn.h>
-#include <gtk/gtktreemodelfilter.h>
-#include <gtk/gtkliststore.h>
-#include <gtk/gtkentrycompletion.h>
-#include <gtk/gtkentry.h>
-#include <gtk/gtkspinbutton.h>
-#include <gtk/gtkeventcontrollermotion.h>
+#include "gtkentry.h"
+
+#include "gtkentrycompletion.h"
+#include "gtkeventcontrollermotion.h"
+#include "gtkliststore.h"
+#include "gtktreemodelfilter.h"
+#include "gtktreeviewcolumn.h"
 
 G_BEGIN_DECLS
 
index 807a70c98e7058cc36be5191bbf24800eb9810c7..31ae0a4d38bddbda67e789b2740966a9e4834d0a 100644 (file)
 
 #include "config.h"
 
-#include <math.h>
-#include <string.h>
-#include <cairo-gobject.h>
+#include "gtkimageprivate.h"
 
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkiconhelperprivate.h"
-#include "gtkimageprivate.h"
 #include "gtkicontheme.h"
 #include "gtkintl.h"
 #include "gtkprivate.h"
+#include "gtksnapshot.h"
 #include "gtktypebuiltins.h"
 #include "gtkwidgetprivate.h"
 
 #include "a11y/gtkimageaccessible.h"
 
+#include <math.h>
+#include <string.h>
+#include <cairo-gobject.h>
+
 /**
  * SECTION:gtkimage
  * @Short_description: A widget displaying an image
index 2d39824f0af808556e2c63676d514bd0d76eae68..33e978676a7ec8bb88a9a3e604439a3e0aa8b833 100644 (file)
 
 #include "config.h"
 
-#include <math.h>
-#include <string.h>
-
-#include "gtklabel.h"
 #include "gtklabelprivate.h"
+
 #include "gtkbindings.h"
 #include "gtkbuildable.h"
 #include "gtkbuilderprivate.h"
+#include "gtkcssnodeprivate.h"
 #include "gtkcssshadowsvalueprivate.h"
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkdnd.h"
+#include "gtkeventcontrollermotion.h"
+#include "gtkgesturedrag.h"
+#include "gtkgesturemultipress.h"
+#include "gtkgesturesingle.h"
 #include "gtkimage.h"
 #include "gtkintl.h"
 #include "gtkmain.h"
 #include "gtkprivate.h"
 #include "gtkseparatormenuitem.h"
 #include "gtkshow.h"
+#include "gtksnapshot.h"
 #include "gtkstylecontextprivate.h"
 #include "gtktextutil.h"
 #include "gtktooltip.h"
 #include "gtktypebuiltins.h"
 #include "gtkwidgetprivate.h"
 #include "gtkwindow.h"
-#include "gtkcssnodeprivate.h"
-#include "gtkwidgetprivate.h"
-#include "gtkeventcontrollermotion.h"
 
 #include "a11y/gtklabelaccessibleprivate.h"
 
+#include <math.h>
+#include <string.h>
+
 /* this is in case rint() is not provided by the compiler, 
  * such as in the case of C89 compilers, like MSVC
  */
index 73aab497c46c47d12e1dd11f6ddcc175c24cc091..aff253c159012e8846efc36761a2e5169f3506f6 100644 (file)
 
 #include "config.h"
 
-#include <string.h>
-
 #include "gtkprogressbar.h"
-#include "gtkorientableprivate.h"
-#include "gtkwidgetprivate.h"
-#include "gtkprivate.h"
-#include "gtkintl.h"
-#include "gtkcssshadowsvalueprivate.h"
-#include "gtkstylecontextprivate.h"
+
 #include "gtkcssnodeprivate.h"
-#include "gtkcssstylepropertyprivate.h"
 #include "gtkcssnumbervalueprivate.h"
-#include "gtkprogresstrackerprivate.h"
+#include "gtkcssshadowsvalueprivate.h"
+#include "gtkcssstylepropertyprivate.h"
 #include "gtkgizmoprivate.h"
+#include "gtkintl.h"
+#include "gtklabel.h"
+#include "gtkorientableprivate.h"
+#include "gtkprogresstrackerprivate.h"
+#include "gtkprivate.h"
+#include "gtkstylecontextprivate.h"
+#include "gtkwidgetprivate.h"
 
 #include "a11y/gtkprogressbaraccessible.h"
 
+#include <string.h>
+
 #include "fallback-c89.c"
 
 /**
index 4c7c05afee9d986626a075229e4d485896f3dc5f..f4c595613a274e5ee404fe479a8c3f92133070ee 100644 (file)
 
 #include "config.h"
 
-#include <stdio.h>
-#include <math.h>
-
-#include "gtkrange.h"
 #include "gtkrangeprivate.h"
 
 #include "gtkadjustmentprivate.h"
 #include "gtkcolorscaleprivate.h"
-#include "gtkintl.h"
+#include "gtkeventcontrollerscroll.h"
+#include "gtkgesturedrag.h"
 #include "gtkgesturelongpressprivate.h"
+#include "gtkgesturemultipress.h"
+#include "gtkgizmoprivate.h"
+#include "gtkiconprivate.h"
+#include "gtkintl.h"
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkorientableprivate.h"
 #include "gtkscale.h"
 #include "gtkscrollbar.h"
 #include "gtktypebuiltins.h"
-#include "gtkwindow.h"
 #include "gtkwidgetprivate.h"
+#include "gtkwindow.h"
+
 #include "a11y/gtkrangeaccessible.h"
-#include "gtkgizmoprivate.h"
-#include "gtkiconprivate.h"
+
+#include <stdio.h>
+#include <math.h>
 
 /**
  * SECTION:gtkrange
index d71510510a76185b7ae34926728f45eb3139fb3d..1a182cf4bf117dcc7a717b84780cb6f207f169f0 100644 (file)
 
 #include "config.h"
 
-#include <math.h>
-#include <stdlib.h>
-
-#include "gtkrangeprivate.h"
+#include "gtkscale.h"
 
 #include "gtkadjustment.h"
 #include "gtkbindings.h"
 #include "gtkbuildable.h"
 #include "gtkbuilderprivate.h"
+#include "gtkgizmoprivate.h"
 #include "gtkicontheme.h"
 #include "gtkintl.h"
+#include "gtklabel.h"
 #include "gtkmarshalers.h"
 #include "gtkorientable.h"
 #include "gtkprivate.h"
-#include "gtktypebuiltins.h"
+#include "gtkrangeprivate.h"
 #include "gtkstylecontextprivate.h"
 #include "gtkstylepropertyprivate.h"
+#include "gtktypebuiltins.h"
 #include "gtkwidgetprivate.h"
-#include "gtkcsswidgetnodeprivate.h"
-#include "gtkgizmoprivate.h"
 
 #include "a11y/gtkscaleaccessible.h"
 
+#include <math.h>
+#include <stdlib.h>
+
 
 /**
  * SECTION:gtkscale
index c2344316f6a1c55de781279b9c18fb19d9f077fb..641c9e21324789d265155e3ddb1b276059c41e76 100644 (file)
 
 #include "gtkspinbutton.h"
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <string.h>
-#include <locale.h>
-
 #include "gtkadjustment.h"
 #include "gtkbindings.h"
+#include "gtkbox.h"
+#include "gtkbutton.h"
+#include "gtkcssstylepropertyprivate.h"
 #include "gtkentryprivate.h"
+#include "gtkeventcontrollermotion.h"
+#include "gtkeventcontrollerscroll.h"
+#include "gtkgesturemultipress.h"
+#include "gtkgestureswipe.h"
 #include "gtkicontheme.h"
 #include "gtkintl.h"
 #include "gtkmarshalers.h"
 #include "gtkorientableprivate.h"
 #include "gtkprivate.h"
 #include "gtksettings.h"
+#include "gtkstylecontextprivate.h"
 #include "gtktypebuiltins.h"
 #include "gtkwidgetpath.h"
 #include "gtkwidgetprivate.h"
-#include "gtkstylecontextprivate.h"
-#include "gtkcssstylepropertyprivate.h"
 
 #include "a11y/gtkspinbuttonaccessible.h"
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <math.h>
+#include <string.h>
+#include <locale.h>
+
 #define MIN_SPIN_BUTTON_WIDTH 30
 #define MAX_TIMER_CALLS       5
 #define EPSILON               1e-10
index b25ffc9e01b36bc3c5b916299078fbc8e6061529..d665ef3dfce694ead8f165d7b32a25214aef98c9 100644 (file)
 
 #include "gtkswitch.h"
 
-#include "gtkintl.h"
-#include "gtkprivate.h"
-#include "gtkwidget.h"
-#include "gtkmarshalers.h"
 #include "gtkactionable.h"
-#include "a11y/gtkswitchaccessible.h"
 #include "gtkactionhelperprivate.h"
-#include "gtkwidgetprivate.h"
+#include "gtkgesturemultipress.h"
+#include "gtkgesturepan.h"
+#include "gtkgesturesingle.h"
+#include "gtkgizmoprivate.h"
+#include "gtkintl.h"
+#include "gtklabel.h"
+#include "gtkmarshalers.h"
+#include "gtkprivate.h"
 #include "gtkprogresstrackerprivate.h"
 #include "gtksettingsprivate.h"
-#include "gtkgizmoprivate.h"
+#include "gtkwidgetprivate.h"
+
+#include "a11y/gtkswitchaccessible.h"
 
 #include "fallback-c89.c"
 
index d74e12665b3cd8f21868c212f812152b846d7bb9..ab86789f0d6933090172a1ebf954b386f864f596 100644 (file)
 
 #include "config.h"
 
-#include <stdarg.h>
-#include <string.h>
-#include <locale.h>
-#include <math.h>
-
-#define GDK_COMPILATION
-#include "gdk/gdkeventsprivate.h"
-
-#include <gobject/gvaluecollector.h>
-#include <gobject/gobjectnotifyqueue.c>
-#include <cairo-gobject.h>
+#include "gtkwidgetprivate.h"
 
-#include "gtkcontainer.h"
 #include "gtkaccelmapprivate.h"
 #include "gtkaccelgroupprivate.h"
+#include "gtkaccessible.h"
+#include "gtkapplicationprivate.h"
+#include "gtkbindings.h"
+#include "gtkbuildable.h"
+#include "gtkbuilderprivate.h"
+#include "gtkcontainerprivate.h"
 #include "gtkcssfiltervalueprivate.h"
+#include "gtkcssfontvariationsvalueprivate.h"
 #include "gtkcssnumbervalueprivate.h"
 #include "gtkcssshadowsvalueprivate.h"
 #include "gtkcssstylepropertyprivate.h"
+#include "gtkcsswidgetnodeprivate.h"
+#include "gtkdebug.h"
+#include "gtkdebugupdatesprivate.h"
+#include "gtkeventcontrollerlegacyprivate.h"
+#include "gtkgesturedrag.h"
+#include "gtkgestureprivate.h"
+#include "gtkgesturesingle.h"
+#include "gtkgestureswipe.h"
 #include "gtkintl.h"
+#include "gtkinvisible.h"
 #include "gtkmarshalers.h"
+#include "gtkmain.h"
+#include "gtkmenu.h"
+#include "gtkpopover.h"
+#include "gtkprivate.h"
+#include "gtkrenderbackgroundprivate.h"
+#include "gtkrenderborderprivate.h"
+#include "gtkscrollable.h"
+#include "gtkselection.h"
 #include "gtksettingsprivate.h"
 #include "gtksizegroup-private.h"
-#include "gtkwidget.h"
-#include "gtkwidgetprivate.h"
-#include "gtkwindowprivate.h"
-#include "gtkcontainerprivate.h"
-#include "gtkbindings.h"
-#include "gtkprivate.h"
-#include "gtkaccessible.h"
-#include "gtktooltipprivate.h"
-#include "gtkinvisible.h"
-#include "gtkbuildable.h"
-#include "gtkbuilderprivate.h"
-#include "gtksizerequest.h"
+#include "gtksnapshotprivate.h"
 #include "gtkstylecontextprivate.h"
-#include "gtkcssprovider.h"
-#include "gtkcsswidgetnodeprivate.h"
-#include "gtkversion.h"
-#include "gtkdebug.h"
+#include "gtktooltipprivate.h"
 #include "gtktypebuiltins.h"
-#include "a11y/gtkwidgetaccessible.h"
-#include "gtkapplicationprivate.h"
-#include "gtkgestureprivate.h"
+#include "gtkversion.h"
 #include "gtkwidgetpathprivate.h"
-#include "gtksnapshotprivate.h"
-#include "gtkrenderborderprivate.h"
-#include "gtkrenderbackgroundprivate.h"
-#include "gtkcssshadowsvalueprivate.h"
-#include "gtkdebugupdatesprivate.h"
+#include "gtkwindowgroup.h"
+#include "gtkwindowprivate.h"
+
+#include "a11y/gtkwidgetaccessible.h"
+#include "inspector/window.h"
+
+#include "gdk/gdkeventsprivate.h"
 #include "gsk/gskdebugprivate.h"
 #include "gsk/gskrendererprivate.h"
-#include "gtkeventcontrollerlegacyprivate.h"
-#include "gtkcssfontvariationsvalueprivate.h"
 
-#include "inspector/window.h"
+#include <cairo-gobject.h>
+#include <gobject/gobjectnotifyqueue.c>
+#include <gobject/gvaluecollector.h>
+#include <locale.h>
+#include <math.h>
+#include <stdarg.h>
+#include <string.h>
 
 /* for the use of round() */
 #include "fallback-c89.c"
index 616ca032d125feee2bf7a07537915ed9dd36b6f1..588d743fb9543189959c0ebfe081d69decac3742 100644 (file)
 #ifndef __GTK_WIDGET_PRIVATE_H__
 #define __GTK_WIDGET_PRIVATE_H__
 
-#include "gtkcsstypesprivate.h"
 #include "gtkwidget.h"
+
+#include "gtkactionmuxerprivate.h"
 #include "gtkcontainer.h"
+#include "gtkcsstypesprivate.h"
 #include "gtkeventcontroller.h"
-#include "gtkactionmuxerprivate.h"
 #include "gtksizerequestcacheprivate.h"
 
 G_BEGIN_DECLS